home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / Source / PacMan / FruitView.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-27  |  706 b   |  29 lines

  1.  
  2. /* Generated by Interface Builder */
  3.  
  4. // This draw x fruits, depending on the level we're at.  Used in the
  5. // "Fruit Basket" window.
  6.  
  7. #import <appkit/View.h>
  8.  
  9. #define FRUIT_SIZE 16    // 16 pixels square
  10. #define FRUIT_PER_ROW 5    // 16 pixels square
  11. #define FRUIT_LEVELS 16    // # levels with fruit specified;
  12.         // after that, we use NeXTcubes.
  13.  
  14. extern int fruits[FRUIT_LEVELS + 1];
  15.  
  16.  
  17. @interface FruitView:View
  18. {
  19.     id   fruit;        // image with all the fruit in it.
  20.     
  21.     int  lastLevel;    // highest level reached by player.
  22. }
  23.  
  24. - initFrame:(const NXRect *)frm;    // initialize instance
  25. - drawSelf:(NXRect *)rects :(int)rectCount;  // standard rendering method
  26. - showLevel:(int)num;                // draw all fruits up to level
  27.  
  28. @end
  29.